package com.wf.repository;

import com.wf.domain.LoanTargetsES;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author mpk
 * @since 2024/10/14 13:43:27
 */
@Repository
public interface LoanRepository extends ElasticsearchRepository<LoanTargetsES,Integer> {


    List<LoanTargetsES> findByPurpose(String purpose);

    List<LoanTargetsES> findByStatusOrPurpose(String status, String purpose);
}
